#!/bin/bash

# 综合
v_list=$example_v_find" "$common_v_find
yosys -p "read_verilog "$v_list -p "
hierarchy -check -top "$(cat $example_script_dirname"/"$top_module_filename)"
write_verilog "$output_dir"/"$yosys_output_v_filename";
show -format dot -prefix "$output_dir"/"$yosys_output_dot_filename_main"
synth_gowin -json "$output_dir"/"$yosys_output_json_filename";"
